<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>维修账户管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="../assets/css/amazeui.datatables.min.css" />
    <link rel="stylesheet" href="../assets/css/app.css">
    <link rel="stylesheet" href="../css/global.css">
    <style>
    .am-datepicker{
        z-index: 99999;
    }
    </style>

</head>

<body data-type="widgets" class="theme-white">
    <div id="app">
        <div class="tpl-g">
            <!-- 头部 -->
            <header>
                <!-- 右侧内容 -->
                <div class="tpl-header-fluid">
                    <!-- 侧边切换 -->
                    <div class="am-fl tpl-header-switch-button am-icon-list">
                        <span>
                        </span>
                    </div>
                    <!-- 搜索 -->
                    <div class="am-fl tpl-header-search">
                        <form class="tpl-header-search-form" action="javascript:;">
                            <button class="tpl-header-search-btn am-icon-search"></button>
                            <input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
                        </form>
                    </div>
                    <!-- 其它功能-->
                    <div class="am-fr tpl-header-navbar">
                        <ul>
                            <!-- 欢迎语 -->
                            <li class="am-text-sm tpl-header-navbar-welcome">
                                <a href="javascript:;" data-provide="fullscreen">欢迎你,
                                    <span>Michael</span>
                                </a>
                            </li>
                            <!-- 新提示 -->
                            <li class="am-dropdown" data-am-dropdown>
                                <a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
                                    <i class="am-icon-bell"></i>
                                    <span class="am-badge am-badge-warning am-round item-feed-badge">5</span>
                                </a>
                                <!-- 弹出列表 -->
                                <ul class="am-dropdown-content tpl-dropdown-content">
                                    <li class="tpl-dropdown-menu-notifications">
                                        <a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
                                            <div class="tpl-dropdown-menu-notifications-title">
                                                <i class="am-icon-line-chart"></i>
                                                <span> 有6笔新的销售订单</span>
                                            </div>
                                            <div class="tpl-dropdown-menu-notifications-time">
                                                12分钟前
                                            </div>
                                        </a>
                                    </li>
                                    <li class="tpl-dropdown-menu-notifications">
                                        <a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
                                            <div class="tpl-dropdown-menu-notifications-title">
                                                <i class="am-icon-star"></i>
                                                <span> 有3个来自人事部的消息</span>
                                            </div>
                                            <div class="tpl-dropdown-menu-notifications-time">
                                                30分钟前
                                            </div>
                                        </a>
                                    </li>
                                    <li class="tpl-dropdown-menu-notifications">
                                        <a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
                                            <div class="tpl-dropdown-menu-notifications-title">
                                                <i class="am-icon-folder-o"></i>
                                                <span> 上午开会记录存档</span>
                                            </div>
                                            <div class="tpl-dropdown-menu-notifications-time">
                                                1天前
                                            </div>
                                        </a>
                                    </li>


                                    <li class="tpl-dropdown-menu-notifications">
                                        <a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
                                            <i class="am-icon-bell"></i> 进入列表…
                                        </a>
                                    </li>
                                </ul>
                            </li>

                            <!-- 退出 -->
                            <li class="am-text-sm">
                                <a href="javascript:;">
                                    <span class="am-icon-sign-out"></span> 退出
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </header>
            <!-- 侧边导航栏 -->
            <div class="left-sidebar">

                <!-- 菜单 -->
                <ul class="sidebar-nav">
                    <li class="sidebar-nav-link">
                        <a href="index.html">
                            <i class="am-icon-home sidebar-nav-link-logo"></i> 首页
                        </a>
                    </li>
                    <li class="sidebar-nav-link">
                        <a href="orderList.html">
                            <i class="am-icon-pencil-square-o sidebar-nav-link-logo"></i> 工单管理
                        </a>
                    </li>
                    <li class="sidebar-nav-link">
                        <a href="maintenance_account.html" class="active">
                            <i class="am-icon-list-ol sidebar-nav-link-logo"></i> 维修账户管理
                        </a>
                    </li>
                    <li class="sidebar-nav-link">
                        <a href="javascript:;" class="sidebar-nav-sub-title">
                            <i class="am-icon-bar-chart sidebar-nav-link-logo"></i> 资料管理
                            <span class="am-icon-angle-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
                        </a>
                        <ul class="sidebar-nav sidebar-nav-sub">
                            <li class="sidebar-nav-link">
                                <a href="parts_fee.html">
                                    <span class="am-icon-long-arrow-right sidebar-nav-link-logo"></span> 零备件费用
                                </a>
                            </li>

                            <li class="sidebar-nav-link">
                                <a href="repair_maintain.html">
                                    <span class="am-icon-long-arrow-right sidebar-nav-link-logo"></span> 标准和条款
                                </a>
                            </li>
                            <li class="sidebar-nav-link">
                                <a href="install_remove.html">
                                    <span class="am-icon-long-arrow-right sidebar-nav-link-logo"></span> 安拆装视频
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!-- 内容区域 -->
            <div class="tpl-content-wrapper">
                <div class="row-content am-cf content">
                    <div class="content_topic">
                        <a href="javascript:;">
                            <i class="am-icon-table sidebar-nav-link-logo"></i>维修账户管理
                        </a>
                    </div>
                    <div class="main" data-wow-delay=".5s">
                        <div class="adduser">
                            <button type="button" class="am-btn am-btn-default purple" id="add-user">新增用户</button>
                        </div>
                        <table class="am-table am-table-bordered am-table-compact table-striped am-table-hover usertable" id="example">
                            <thead>
                                <tr>
                                    <!-- <th>序号</th> -->
                                    <th>经销商</th>
                                    <th>联系电话</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <!-- 新增用户模态弹窗 -->
        <div class="am-popup" id="am_modal_user">
            <div class="am-popup-inner">
                <div class="am-popup-hd">
                    <h4 class="am-popup-title">用户编辑</h4>
                    <span data-am-modal-close class="am-close">&times;</span>
                </div>
                <div class="am-popup-bd">
                    <form class="am-form am-form-horizontal" id="form-data" data-am-validator>
                        <div class="am-g">
                            <div class="am-u-md-8 am-u-sm-centered">
                                <fieldset class="am-form-set">
                                    <label  class="am-u-sm-3 am-form-label">经销商姓名</label>
                                    <div class="am-u-sm-9">
                                        <input type="text" placeholder="输入经销商" id="name" required>
                                    </div>
                                    <label  class="am-u-sm-3 am-form-label">联系电话</label>
                                    <div class="am-u-sm-9">
                                        <input type="text"  placeholder="联系电话" id="phone" required>
                                    </div>
                                    <div class="am-g am-hide ">
                                        <div id="wx_code"  class="loginPanel normalPanel">
                                        </div>
                                    </div>
                                </fieldset>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="am-modal-footer">
                    <button class="am-btn am-btn-primary QRcode" onclick="creatCode()">生成二维码</button>
                    <button class="am-btn am-btn-default purple" id="save-btn" onclick="saveUser()">保存</button>
                </div>
            </div>
        </div>
        <!-- 修改用户模态弹窗 -->
        <div class="am-popup" id="updata_user">
            <div class="am-popup-inner">
                <div class="am-popup-hd">
                    <h4 class="am-popup-title">修改用户信息</h4>
                    <span data-am-modal-close class="am-close">&times;</span>
                </div>
                <div class="am-popup-bd">
                    <form class="am-form am-form-horizontal">
                        <div class="am-g">
                            <div class="am-u-md-8 am-u-sm-centered">
                                <form class="am-form">
                                    <fieldset class="am-form-set">
                                        <label  class="am-u-sm-3 am-form-label">账户</label>
                                        <div class="am-u-sm-9">
                                            <input type="text" placeholder="输入你的账户" id="user_name">
                                        </div>
                                        <label  class="am-u-sm-3 am-form-label">经销商</label>
                                        <div class="am-u-sm-9">
                                            <input type="text" placeholder="输入经销商" id="agency">
                                        </div>
                                        <label  class="am-u-sm-3 am-form-label">手机号</label>
                                        <div class="am-u-sm-9">
                                            <input type="text"  placeholder="输入你的手机号" id="phone">
                                        </div>
                                        <label class="am-u-sm-3 am-form-label">服务地区</label>
                                        <div class="am-u-sm-9">
                                            <input type="text"  placeholder="输入服务地区" id="area">
                                        </div>
                                        <label  class="am-u-sm-3 am-form-label">注册时间</label>
                                        <div class="am-u-sm-9">
                                            <input type="text"  placeholder="输入注册时间" id="date">
                                        </div>
                                    </fieldset>
                                </form>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="am-modal-footer">
                    <button type="button" class="am-btn am-btn-default purple am-modal-btn" onclick="update()">确定</button>
                </div>
            </div>
        </div>
    </div>
    
    <script src="../assets/js/jquery.min.js"></script>
    <script src="../assets/js/amazeui.min.js"></script>
    <script src="../assets/js/amazeui.datatables.min.js"></script>
    <script src="../assets/js/dataTables.responsive.min.js"></script>
    <script src="../assets/js/app.js"></script>

    <script src="../js/common/Server.js"></script>
    <script src="../js/wxLogin.js"></script>
    <script src="../js/common/constant.js"></script>
    <script src="../js/maintenance_account.js"></script>
</body>

</html>